package com.ruoyi.project.tickets.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 票券规则对象 t_tickets_rule
 * 
 * @author 孙山伟
 * @date 2023-06-29
 */
public class TicketsRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 总价 */
    @Excel(name = "总价")
    private Double totalPrice;

    /** 单价 */
    @Excel(name = "单价")
    private Double unitPrice;

    /** 类型，高级券、普通券 */
    @Excel(name = "类型，高级券、普通券")
    private String type;

    /** 数量 */
    @Excel(name = "数量")
    private Long tNum;

    /** 票券种类 */
    @Excel(name = "票券种类")
    private String ticketType;

    /** 主键 */
    private Long id;


    private Long  pushNumber;
    public void setTotalPrice(Double totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public Double getTotalPrice()
    {
        return totalPrice;
    }
    public void setUnitPrice(Double unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public Double getUnitPrice() 
    {
        return unitPrice;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void settNum(Long tNum) 
    {
        this.tNum = tNum;
    }

    public Long gettNum() 
    {
        return tNum;
    }
    public void setTicketType(String ticketType) 
    {
        this.ticketType = ticketType;
    }

    public String getTicketType() 
    {
        return ticketType;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("totalPrice", getTotalPrice())
            .append("unitPrice", getUnitPrice())
            .append("type", getType())
            .append("tNum", gettNum())
            .append("ticketType", getTicketType())
            .append("id", getId())
            .toString();
    }


    public Long getPushNumber() {
        return pushNumber;
    }

    public void setPushNumber(Long pushNumber) {
        this.pushNumber = pushNumber;
    }
}
